package pl.umk.mat.fred.unicore.urc.storagemanagement;

import java.util.HashMap;
import java.util.Map;

public class Cache {
	
	Map<String, Object> objects;
	
	public Cache() {
		objects = new HashMap<String, Object>();
	}
	
	public Object getObject(String name) {
		return objects.get(name);
	}
	
	public void setObject(String name, Object object) {
		if (!objects.containsKey(name)) {
			objects.put(name, object);
		}
	}
}
